

const initialState = {}

const user = (state = initialState, action) => {
  switch (action.type) {
    case 'user/getUserInfo':
      return action.payload
    case 'user/clearInfo':
      return initialState
    default:
      return state
  }
}

export { user }